﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="Admin_WxUser_List" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">

    <link href="../css/plugins/footable/footable.core.css" rel="stylesheet" />

    <link href="../50/style.css" rel="stylesheet" />


        
    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <script src="../Js/plugins/sweetalert/sweetalert.min.js"></script>
 <style>
 .msgtable td{
	padding:0px;
}
</style>
</head>
<body>
    <form id="form1" runat="server" class="form-horizontal m-t">
    <div class="wrapper animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>
                            用户管理</h5>
                        
                   
                        <div class="ibox-tools">
                            <a href="UserList.aspx" class="btn btn-primary btn-xs"><i class="fa fa-refresh"> &nbsp;&nbsp; 刷 新</i></a>
                            <!--a href="#" id="Add" class="btn btn-primary btn-xs"><i class="fa fa-plus"></i>&nbsp;&nbsp; 新增内容</!--a-->

                      </div>
                    </div>
                    <div class="ibox-content">
                      
                         <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
                            <HeaderTemplate>
                                <table class="footable table table-stripped toggle-arrow-tiny" >
                                    <thead>
                                        <tr>
                                            <th align="center">序号</th>
                                            <th align="center">微信名</th>
                                             <th align="center">真实姓名</th>
                                             <th align="center">电话</th>
                                            <th align="center">公司名字</th>
                                            <th align="center">身份证正面</th>
                                             <th align="center">身份证反面</th>   
                                             <th align="center">视频播放</th> 
                                            <th align="center">状态 </th>                                                                                                                
                                        </tr>
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="gradeX">
          <td ><%# Eval("UID")%></td>
           <td  ><%#getUser(Eval ("WXID").ToString())%></td>
           <td  ><%#Eval("relName")%></td>
           <td  ><%#Eval("Tel")%></td>
           <td  ><%#Eval("ComName")%></td>

         <td  ><a href="<%#Eval("img1")%>"> <img src='<%#Eval("img1")%>' width="50" height="50" /></a></td>
         <td ><a href="<%#Eval("img2")%>"> <img src='<%#Eval("img2")%>' width="50" height="50" /></a></td>
         <td> <a onclick='vplay("<%#Eval("video")%>")' class="btn  btn-xs"><i class="fa fa-tv"></i>点击播放</a>  &nbsp;&nbsp;&nbsp;&nbsp;</td>
        <td>

         <asp:LinkButton ID="ibtnlock" CommandName="ibtnLock" runat="server"  CommandArgument='<%#Eval("UID")%>'><%# Convert.ToInt32(Eval("State"))!=2? "<span class='btn btn-danger btn-xs'><i class=fa fa-lock></i>待审核</span>" : "<span class='btn btn-info btn-xs'><i class='fa fa-check'></i>认证通过</span>"%></asp:LinkButton> &nbsp;
        
         <a onclick='jujue("<%#Eval("UID")%>")' ><%# Convert.ToInt32(Eval("State"))!=2?"<span class='btn btn-warning btn-xs'><i class=fa fa-lock></i>拒绝通过</span>" : "<span class='btn btn-info btn-xs'><i class='fa fa-check'></i>认证通过</span>"%></a>

        </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </tbody>
       
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>               
 <webdiyer:AspNetPager ID="AspNetPager1"  runat="server"  PageSize="10"  FirstPageText="首页"  LastPageText="末页" NextPageText="下一页" PrevPageText="上一页" AlwaysShow="true"  onpagechanging="AspNetPager1_PageChanging" CssClass="paginator"   CurrentPageButtonClass="cpb">

         </webdiyer:AspNetPager>
     <div class="spClear"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>



      <!-- 全局js -->
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

      <!-- 自定js -->

    <script src="../js/plugins/footable/footable.all.min.js" type="text/javascript"></script>
    <script src="../js/content.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/layer/layer.js"></script>

        <!-- iCheck -->
    <script src="../js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green'

            });
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function () { $(".footable").footable(); });
    </script>
    <script type="text/javascript">
 

        $(function () {
            $("#Add").click(function () {

            parent.layer.open({
                    type: 2,
                    title: '添加新内容',
                    shadeClose: true,
                    shade: 0.8,
                    area: ['100%', '100%'],
                    content: 'VedioPlay.aspx',  //iframe的url
                    end: function () {

                        location.reload();

                    }
                });

            });

        });



        function jujue(ID)
       {
            parent.layer.open({
               type: 2,
               title: '拒绝申请',
               shadeClose: true,
               shade: 0.8,
               area: ['70%', '70%'],
               content: 'jujue.aspx?ID=' + ID,  //iframe的url
               end: function () {

                   location.reload();

               }
           });
       }

        function vplay(ID) {
            layer.open({
                type: 2,
                title: '视频播放',
                shadeClose: true,
                shade: 0.8,
                area: ['90%', '80%'],
                content: 'VedioPlay.aspx?url='+ID,  //iframe的url
                end: function () {

                    location.reload();

                }
            });
        }
    </script>
</body>
</html>
